﻿using System;

namespace MyProFile_V2.Model
{
    public  class ColumnsModel
    {
        //列名
        private string name;
        public string Name
        {
            get { return name; }
            set { name = value; }
        }
        //类型
        private int xtype;
        public int Xtype
        {
            get { return xtype; }
            set { xtype = value; }
        }
        //是不是主键
        private bool isPK;
        public bool IsPK
        {
            get { return isPK; }
            set { isPK = value; }
        }
        //是否为空
        private bool isNull;
        public bool IsNull
        {
            get { return isNull; }
            set { isNull = value; }
        }
        //描述
        private string des;
        public string Des
        {
            get { return des; }
            set { des = value; }
        }
        //是不是自增
        private bool isIdentity;
        public bool IsIdentity
        {
            get { return isIdentity; }
            set { isIdentity = value; }
        }
        //默认值
        private object defValue;
        public object DefValue
        {
            get { return defValue; }
            set { defValue = value; }
        }
        //列的描述
        private string colDes;

        public string ColDes
        {
            get { return colDes; }
            set { colDes = value; }
        }

        //列序
        private int colOrder;

        public int ColOrder
        {
            get { return colOrder; }
            set { colOrder = value; }
        }
    }
}
